package container // import "xemo.top/docker/docker/api/types/container"

// WaitCondition 是一种用于指定要等待的容器状态的类型。
// WaitCondition is a type used to specify a container state for which to wait.
type WaitCondition string

// 可能的等待条件值
// Possible WaitCondition values
//
// WaitConditionNotRunning （默认）用于等待任何未运行的
// WaitConditionNotRunning (default) is used to wait for any of the non-running
// 状态：“已创建”、“已退出”、“死亡”、“正在删除”或“已删除”
// states: "created","exited","dead","removing".or "removed"
//
// WaitConditionNextExit 用于等待下一次状态变为非运行状态。如果状态当前为“创建”或“退出”，这将导致Wait（）阻塞，直到容器运行并退出或被删除。
// WaitConditionNextExit is used to wait for the next time the state changes to a non-running state. If the state is currently "created" or "exited", this would cause Wait() to block until either the container runs and exits or is removed.
//
// WaitConditionRemoved is used to wait for the container to be removed
const (
	WaitConditionNotRunning WaitCondition = "not-running"
	WaitConditionNextExit   WaitCondition = "next-exit"
	WaitConditionRemoved    WaitCondition = "removed"
)
